package com.xingchi.tornado.storage.core.exception;

import com.xingchi.tornado.core.exception.UncheckedException;

/**
 * 文件上传异常
 *
 * @author xingchi
 * @date 2024/4/21 21:40
 */
public class FileUploadException extends UncheckedException {

    public FileUploadException() {
        this(FileCode.FILE_UPLOAD_FAIL.getCode(), FileCode.FILE_UPLOAD_FAIL.getMessage());
    }

    public FileUploadException(String message) {
        this(FileCode.FILE_UPLOAD_FAIL.getCode(), message);
    }

    public FileUploadException(int code, String message) {
        super(code, message);
    }
}
